package com.yangfei.SportAssistant.mapProvider;

import android.app.Activity;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Point;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;


public interface LoggerMap
{

   void setDrawingCacheEnabled(boolean b);

   Activity getActivity();

   void updateOverlays();

   void onLayerCheckedChanged(int checkedId, boolean b);

   void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key);

   Bitmap getDrawingCache();

   void showMediaDialog(BaseAdapter mediaAdapter);

   String getDataSourceId();

   boolean isOutsideScreen(GeoPointYf lastPoint);

   boolean isNearScreenEdge(GeoPointYf lastPoint);

   void executePostponedActions();

   void disableMyLocation();

   void disableCompass();

   void setZoom(int int1);

   void animateTo(GeoPointYf storedPoint);

   int getZoomLevel();

   GeoPointYf getMapCenter();

   boolean zoomOut();

   boolean zoomIn();

   void postInvalidate();

   void enableCompass();

   void enableMyLocation();

   void addOverlay(OverlayProvider overlay);

   void clearAnimation();

   void setCenter(GeoPointYf lastPoint);

   int getMaxZoomLevel();

   GeoPointYf fromPixels(int x, int y);

   boolean hasProjection();

   float metersToEquatorPixels(float float1);

   void toPixels(GeoPointYf geopoint, Point screenPoint);

   TextView[] getSpeedTextViews();

   TextView getAltitideTextView();

   TextView getSpeedTextView();

   TextView getDistanceTextView();

   void clearOverlays();

   SlidingIndicatorView getScaleIndicatorView();
   
   ViewGroup getMapView();
   
   boolean isSatelliteView();
   
   void setSatelliteView(boolean mapMode);
   
   int getLatitudeSpan();
   int getLongitudeSpan();
   
   void zoomToSpan(int latSpan,int longSpan);
   
   void showMyLocation();
   void showWaypoint(long trackId, long id);
   void showWaypoint(long id);
   
   void draw(Canvas canvas);
}
